package org.discala.util.logging

/**
 * @author Chris Turner
 */
object LogLevel extends Enumeration {

  type LogLevel = Value
  val Trace, Debug, Info, Warn, Error = Value

  def asString(level: LogLevel) = level match {
    case Trace => "TRACE"
    case Debug => "DEBUG"
    case Info => "INFO "
    case Warn => "WARN "
    case Error => "ERROR"
  }
}